function findUser() {
	var userName = document.getElementById("userName").value;
	if (userName != "") {
		if (userName.length >= 6 && userName.length <= 12) {
			userServiceImpl.findUser(userName, callBackLogin);
		} else {
			document.getElementById("userNameIsNull").style.display = "none";
			document.getElementById("userNameLength").style.display = "inline";
			document.getElementById("userNameIsNotExist").style.display = "none";
			document.getElementById("userNameIsExist").style.display = "none";
			document.getElementById("userName").focus();
		}
	} else {
		document.getElementById("userNameIsNull").style.display = "inline";
		document.getElementById("userNameLength").style.display = "none";
		document.getElementById("userNameIsNotExist").style.display = "none";
		document.getElementById("userNameIsExist").style.display = "none";
		document.getElementById("userName").focus();
	}
}
function callBackLogin(date) {
	if (date == "exist") {
		document.getElementById("userNameIsNull").style.display = "none";
		document.getElementById("userNameLength").style.display = "none";
		document.getElementById("userNameIsNotExist").style.display = "none";
		document.getElementById("userNameIsExist").style.display = "inline";
		document.getElementById("userName").focus();
	} else {
		document.getElementById("userNameIsNull").style.display = "none";
		document.getElementById("userNameLength").style.display = "none";
		document.getElementById("userNameIsNotExist").style.display = "inline";
		document.getElementById("userNameIsExist").style.display = "none";
	}
}
function checkPassword(){
	var password=document.getElementById("password").value;
	if(password!=""){
		if(password.length<6||password.length>18){
			document.getElementById("passwordIsNull").style.display = "none";
			document.getElementById("passwordLength").style.display = "inline";
			document.getElementById("password").focus();
		}else{
			document.getElementById("passwordIsNull").style.display = "none";
			document.getElementById("passwordLength").style.display = "none";
		}
	}else{
		document.getElementById("passwordIsNull").style.display = "inline";
		document.getElementById("passwordLength").style.display = "none";
		document.getElementById("password").focus();
	}
}
function checkAgainPassword(){
	var password=document.getElementById("password").value;
	var againPassword=document.getElementById("againPassword").value;
	if(againPassword==""||password.length<6||password.length>18||password!=againPassword){
		document.getElementById("passwordIsNotSame").style.display="inline";
		document.getElementById("password").focus();
	}else{
		document.getElementById("passwordIsNotSame").style.display="none";
	}
	
}